﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyAspx.EasyFramework.EntityFramework;

namespace MyAspx.EasyFramework.DAL3
{
    
   public class SaleDetailDAL
    {
       commyaspxdbEntities _myaspxentities = new commyaspxdbEntities();

       public int AddNewSaleDetail(my_saledetail mySaledetail)
       {
           _myaspxentities.my_saledetail.Add(new my_saledetail()
           {
               fileid = mySaledetail.fileid,
               salenum =  mySaledetail.salenum
           });
           return _myaspxentities.SaveChanges();
       }
    }
}
